/**
 * 
 */
package com.an.redisl;

import java.util.HashMap;
import java.util.Map;

import redis.clients.jedis.Jedis;

/**
 * @author Administrator
 *
 */
public class test4 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		Jedis jedis = new Jedis("127.0.0.1");
		Map<String, String> map = new HashMap<>();
		map.put("he", "he");
		map.put("he1", "null");
		String key = "testMap";
		jedis.hmset(key, map);
		System.out.println("kekey不存在，返回长度为" + map.size() + "的Map");
		jedis.close();
	}

}
